package com.bestseller.enums;

import java.lang.reflect.Method;
import java.util.ArrayList;

public class MainDo {
	public static void main(String[] args) throws Exception {
		/*for(;;){
			System.out.println(TrafficLight.RED);
			Thread.sleep(TrafficLight.RED.getTime()*1000);
			
			System.out.println(TrafficLight.RED.nextIndicate());
			Thread.sleep(TrafficLight.RED.nextIndicate().getTime()*1000);
			
			System.out.println(TrafficLight.RED.nextIndicate().nextIndicate());
			Thread.sleep(TrafficLight.RED.nextIndicate().nextIndicate().getTime()*1000);
		}*/
		
		ArrayList<String> array=new ArrayList<String>();
		Class clazz=array.getClass();
		Method method = clazz.getMethod("add",Object.class);
		method.invoke(array, 1);
		System.out.println(array.size());
		
		
		
	}
	
	
	
}
